add_rules("mode.debug", "mode.release")

add_requires("cjson")
add_requires("libsdl2", "libsdl2_image", "libsdl2_mixer", "libsdl2_ttf", "libsdl2_gfx")
add_requires("imgui", {configs = {sdl2 = true}})

target("game")
    set_kind("binary")
    add_files("game/*.cpp")
    add_packages("cjson", "libsdl2", "libsdl2_image", "libsdl2_mixer", "libsdl2_ttf", "libsdl2_gfx")

target("editor")
    set_kind("binary")
    add_files("editor/*.cpp")
    add_packages("libsdl2", "imgui")
